package com.xlb.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 小聋包
 * @date 2024/5/14
 * @Version 1.0
 */
@Getter
@Setter
public class BizException extends RuntimeException {
    //异常码
    private String  errorCode;
    //异常信息
    private String  errorMessage;
    public BizException(BaseExceptionInterface baseExceptionInterface) {

        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }
}
